/**
 * 该组件为列表页面使用，但是列表页面是拼凑的，而非直接antd的table
 */
import React, {Component} from 'react';
import {Row, Col, Checkbox, Pagination} from 'antd';

import noop from 'util/noop';



export default class Pagination extends Component {
    static defaultProps = {

        current: 1,
        total: 0,
        pageSize: 10,
        showSizeChanger: false,
        showQuickJumper: false,
        size: '',
        showTotal: noop,
        onShowSizeChange: noop,
        onChange: noop
    }


    render() {
        const {...rest} = this.props;


        return (
            <Row className="pagination-retail">
                <Col span="7">
                    <div className="lh28">
                        <Checkbox checked={selectAll}
                                  indeterminate={indeterminate}
                                  onChange={()=>selectAll4Page(!selectAll)}>全选</Checkbox>
                    </div>
                </Col>
                <Col span="17">
                    <Pagination {...rest}/>
                </Col>
            </Row>
        )
    }
}